<!--
  @author mujunlin
  @since 2019/10/17 14:49
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:replace="common/common :: jscss"/>
</head>
<body>
<div class="layui-fluid">

    <blockquote class="layui-crumb">
        <zmn>订单配置</zmn>&nbsp;&nbsp;>&nbsp;
        <zmn>派单参数配置</zmn>
    </blockquote>

    <fieldset class="layui-elem-field" style="background-color: white">
        <div class="layui-field-box">
            当：具体服务商+城市，未配置时，则使用对应服务平台的配置数据。
        </div>
    </fieldset>

    <div class="layui-card">
        <div class="layui-card-body">
            <!--<div th:replace="orderconfig/distribute/_table::table"/>-->

            <div class="layui-tab">
                <ul class="layui-tab-title">
                    <li class="layui-this">平台直派</li>
                    <li>服务商派单</li>
                </ul>
                <div class="layui-tab-content">
                    <div class="layui-tab-item layui-show">
                        <div th:replace="orderconfig/distribute/_table::table_plat"/>
                    </div>
                    <div class="layui-tab-item">
                        <div th:replace="orderconfig/distribute/_table::table_company"/>
                    </div>
                </div>
            </div>

        </div>

        <script type="text/html" id="tableBar_company">
            <a href="#"
               style="color: #00a0e9"
               th:if="${#authPermit.checkPermit('/orderconfig/distribute/edit.action')}"
               lay-event="platConfig">修改</a>
            &nbsp;&nbsp;
            <a href="#"
               style="color: #00a0e9"
               th:if="${#authPermit.checkPermit('/orderconfig/distribute/company/list.action')}"
               lay-event="companyConfig">服务商设置</a>
        </script>

        <script type="text/html" id="tableBar_plat">
            <a href="#"
               style="color: #00a0e9"
               th:if="${#authPermit.checkPermit('/orderconfig/distribute/direct/edit.action')}"
               lay-event="platConfig">修改</a>
        </script>

        <script type="text/html" id="zmn-table-plat-tool">
            <div class="layui-btn-container">
                <div class="layui-btn-group">
                    <button class="layui-btn layui-btn-sm" lay-event="add">+新增</button>
                </div>
                <div class="layui-btn-group">
                    <button class="layui-btn layui-btn-sm layui-btn-primary" lay-event="enable">启用</button>
                </div>
                <div class="layui-btn-group">
                    <button class="layui-btn layui-btn-sm layui-btn-primary" lay-event="disable">停用</button>
                </div>
            </div>
        </script>
<!--        <script type="text/html" id="zmn-table-company-tool">-->
<!--            <div class="layui-btn-container">-->
<!--                <div class="layui-btn-group">-->
<!--                    <button class="layui-btn layui-btn-sm" lay-event="add">+新增</button>-->
<!--                </div>-->
<!--                <div class="layui-btn-group">-->
<!--                    <button class="layui-btn layui-btn-sm layui-btn-primary" lay-event="enable">启用</button>-->
<!--                </div>-->
<!--                <div class="layui-btn-group">-->
<!--                    <button class="layui-btn layui-btn-sm layui-btn-primary" lay-event="disable">停用</button>-->
<!--                </div>-->
<!--            </div>-->
<!--        </script>-->


    </div>
</div>
</body>
</html>
<script type="text/javascript" th:inline="javascript">

    var json = {
        bizType: [[${bizType}]],
        size:[[${size}]]
    };

    layui.config({
        base: "/static/lay/",
        version: 202009041525
    }).extend({
        index: "lib/index",
        orderconfig_distribute_list: "orderconfig/distribute/zmn.orderconfig.distribute.list"
    }).use(['index', 'orderconfig_distribute_list']);
</script>
<script type="text/html" id="help_content">
    <p><h2>说明：</h2></p>
    <p><span>1、新单简单派单</span></p>
    <p><span>- 针对：新单，人工派单</span></p>
    <p><span>- 指：工程师只需满足基础条件即可派单</span></p>
    <p><span>2、新单自动派单</span></p>
    <p><span>- 针对：新单</span></p>
    <p><span>- 分为：指定自动派、推荐自动派、公平自动派、关闭自动派</span></p>
    <p><span>- 同理设置人工派单</span></p>
    <p><span>- 公平自动派，处于同一轮次时，按：当月成功率降序排</span></p>
    <p><span>3、返修简单派单</span></p>
    <p><span>- 针对：返修单</span></p>
    <p><span>- 指：工程师只需满足基础条件，或源工程师在职</span></p>
    <p><span>4、返修自动派单</span></p>
    <p><span>- 针对：返修单，目前仅：源工程师自动派单一种模式</span></p>
    <p><span>5、自动派单时间</span></p>
    <p><span>- 指定时间段内，进行自动派单</span></p>
    <p><span>6、最大手头返修</span></p>
    <p><span>- 同时针对：新单和返修单</span></p>
    <p><span>- 状态：已派单&已领单&已上门-进行中</span></p>
    <p><span>- 不含：拉修、待件、统一结算、开发票、失败申请</span></p>
    <p><span style="color: red">- 注意：当源工程师在，则不判断最大返修单量</span></p>
</script>
<style>
    /*帮助提示框*/
    body .zmn-tips {

    }
    body .zmn-tips .layui-layer-content {
        color: #0C0C0C;
        background-color: #e6e6e6;
        padding-right: 3px;
        width: 396px;
        height: 300px;
        overflow-x: hidden;
        overflow-y: scroll;
    }

    body .zmn-tips .layui-layer-content::-webkit-scrollbar-track {
        background-color: #e6b31a;
    }
</style>